﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Reporting.Domain.RBAC
{
    /// <summary>
    /// 角色权限关系表
    /// </summary>
    public class RolePermissions
    {
        /// <summary>
        /// 角色权限关系表主键
        /// </summary>
        [Key]
        public int RolePermissionId { get; set; }

        /// <summary>
        /// 外键
        /// Role
        /// </summary>
        public int RoleId { get; set; }

        /// <summary>
        /// 外键
        /// Permissions
        /// </summary>
        public int PermissionId { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime RolePermissionsTime { get; set; }
        /// <summary>
        ///状态 false-正常 true-删除
        /// </summary>
        public bool RolePermissionsStatus { get; set; } = false;
    }
}
